<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<title>Gti 本科第二学士学位招生报名系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style>
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        margin: 0;
        padding: 0;
    }
    
    .logo_top {
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 20px 0;
    }
    
    .logo_top h1 {
        margin: 0;
        font-size: 24px;
    }
    
    .home-container-body {
        width: 80%;
        margin: 20px auto;
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    
    form {
        width: 100%;
    }
    
    table {
        width: 100%;
        border-collapse: collapse;
    }
    
    table tr {
        margin-bottom: 10px;
    }
    
    table td {
        padding: 10px;
    }
    
    input[type="text"],
    input[type="password"] {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }
    
    input[type="submit"] {
        background-color: #333;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }
    
    input[type="submit"]:hover {
        background-color: #555;
    }
    
    .foot {
        text-align: center;
        padding: 10px 0;
        background-color: #333;
        color: #fff;
        position: fixed;
        bottom: 0;
        width: 100%;
    }
</style>

<body>
    <div class="logo_top">
        <h1>Gti 本科第二学士学位招生报名系统</h1>
    </div>
    <div class="home-container-body">
        <div id="form-container">
            <form method="post" action="get.php">
                <table width="100%">
                    <tr>
                        <td width="200">数据库地址：</td>
                        <td>
                            <input type="text" name="url" value="localhost">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">数据库用户名：</td>
                        <td>
                            <input type="text" name="name" value="">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">数据库密码：</td>
                        <td>
                            <input type="password" name="password" value="">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">数据库：</td>
                        <td>
                            <input type="text" name="db" value="">
                        </td>
                    </tr>
                    <tr>
                        <td width="100">端口：</td>
                        <td>
                            <input type="text" name="port" value="3306">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="submit" value="提交">
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="foot">
        版权所有 &copy; Gti 本科第二学士学位招生报名系统
    </div>

    <script>
        window.onload = function() {
            var xhr = new XMLHttpRequest();
            xhr.open('HEAD', '../sql.php', true);
            xhr.onreadystatechange = function() {
                if (xhr.readyState === 4) {
                    if (xhr.status === 200) {
                        document.getElementById('form-container').innerHTML = '<p>系统已安装</p>';
                    } else {
                        document.getElementById('form-container').style.display = 'block';
                    }
                }
            };
            xhr.send();
        };
    </script>
</body>

</html>